#include "ClientThread.h"

ClientThread::ClientThread(BarberShop *bShop, unsigned int pThreadID)
:
Runnable(),
m_pkBarberShop(bShop),
m_uiThreadID(pThreadID)
{
}

ClientThread::~ClientThread(void)
{
}


void ClientThread::run()
{
	//pregunta si la silla del peluquero esta libre
	m_pkBarberShop->ExecuteQueryAndLock(IS_BARBER_SEAT_OCCUPIED);
	m_pkBarberShop->ExecuteQueryAndLock(IS_ANY_WAITING_SEAT_FREE);
}